﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain.Materials
{
    /// <summary>
    /// 物料基本档表
    /// </summary>
    public class Material_BasicModel
    {
        /// <summary>
        /// 主键，物料唯一标识
        /// </summary>
        [Key]
        public int material_id { get; set; }

        /// <summary>
        /// 外键，关联物料分类表
        /// </summary>
        public int category_id { get; set; }
        /// <summary>
        /// 物料编码，必填项
        /// </summary>
        public long material_code { get; set; }
        /// <summary>
        /// 物料名称，必填项
        /// </summary>
        public string material_name { get; set; }
        /// <summary>
        /// 型号规格
        /// </summary>
        public string? model_specification { get; set; }
        /// <summary>
        /// 图纸号
        /// </summary>
        public string? drawing_number { get; set; }
        /// <summary>
        /// 规格描述
        /// </summary>
        public string specification_desc { get; set; }
        /// <summary>
        /// 主计量，关联计量单位动态表
        /// </summary>
        public int unit_of_measurement_id { get; set; }
        /// <summary>
        /// 供应方式，关联供应方式动态表
        /// </summary>
        public int supply_method_id { get; set; }
        /// <summary>
        /// 允许负库存（0：不允许，1：允许）
        /// </summary>
        public bool allow_negative_stock { get; set; }
        /// <summary>
        /// 保持物料名称（复选框，0：不保持，1：保持）
        /// </summary>
        public bool keep_material_name { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 删除标识符
        /// </summary>
        public bool IsDel { get; set; }


        public string? orderNumber { get; set; }
        public string? warehouse { get; set; }
        public string? receiptNumber { get; set; }
        public string? materialCode { get; set; }
        public string? materialName { get; set; }
        public string? specification { get; set; }
        public string? unit { get; set; }
        public int? pcount { get; set; }
        public int? price { get; set; }

    }
}
